/*
 * @Description:
 * @version:
 * @Author: sunqian_sr
 * @Date: 2023-01-13 17:13:13
 * @LastEditors: Andy
 * @LastEditTime: 2023-02-06 15:34:58
 */
import { mapState } from 'pinia'
import { checkPermi } from '@package/utils'
import { pinias } from '@/common/pinia'

const { login } = pinias

const PermissionsMixin = {
  computed: {
    ...mapState(login, ['permissionsActions'])
  },
  methods: {
    checkBntPermi(val) {
      return checkPermi(val || '', this.permissionsActions)
    }
  }
}
export default PermissionsMixin
